<!doctype html>
{block name="include"}{include file="head" /}{/block}
<html class="x-admin-sm">
    <body class="index">
        <!-- 顶部开始 -->
        <div class="container">
            <div class="logo">
                <a href="">X-admin v2.2</a></div>
            <div class="left_open">
                <a><i title="展开左侧栏" class="iconfont">&#xe699;</i></a>
            </div>

            </ul>
            <ul class="layui-nav right" lay-filter="">
                <li class="layui-nav-item">
                    <a href="javascript:;"><img src="{$u.user_thumb_img}" class="layui-nav-img">{$u.user_name}</a>

                    <dl class="layui-nav-child">
                        <!-- 二级菜单 -->
<!--                        <dd>-->
<!--                            <a onclick="xadmin.open('个人信息','http://www.baidu.com')">个人信息</a></dd>-->
<!--                        <dd>-->
<!--                            <a onclick="xadmin.open('切换帐号','http://www.baidu.com')">切换帐号</a></dd>-->
                        <dd>
                            <a href="{:url('admin/login/logout')}">退出</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item to-index">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>
            </ul>
        </div>
        <!-- 顶部结束 -->
        <!-- 中部开始 -->
        <!-- 左侧菜单开始 -->
        <div class="left-nav">
            <div id="side-nav">
                <ul id="nav">

                    {foreach $top_nav as $top_v}

                    <li>
                        <a href="javascript:;">
                            <i class="layui-icon left-nav-li {$top_v.auth_icon}" lay-tips="{$top_v.auth_name}"></i>
                            <cite>{$top_v.auth_name}</cite>
                            <i class="iconfont nav_right">&#xe697;</i></a>
                        <ul class="sub-menu">
                            {foreach $second_nav as $second_v }
                            {if ($second_v.pid == $top_v.id)}
                            <li>
                                <a onclick="xadmin.add_tab('{$second_v.auth_name}','{:url(\'admin/\'.$second_v[\'auth_c\'].\'/\'.$second_v[\'auth_a\'])}')">
                                    <i class="iconfont">&#xe6a7;</i>
                                    <cite>{$second_v.auth_name}</cite></a>
                            </li>
                            {/if}
                            {/foreach}
                        </ul>
                    </li>

                    {/foreach}
<!--                    <li>-->
<!--                        <a href="javascript:;">-->
<!--                            <i class="iconfont left-nav-li" lay-tips="权限管理">&#xe723;</i>-->
<!--                            <cite>权限管理</cite>-->
<!--                            <i class="iconfont nav_right">&#xe697;</i></a>-->
<!--                        <ul class="sub-menu">-->
<!--                            <li>-->
<!--                                <a onclick="xadmin.add_tab('角色列表','{:url(\'admin/role/index\')}')">-->
<!--                                    <i class="iconfont">&#xe6a7;</i>-->
<!--                                    <cite>角色列表</cite></a>-->
<!--                            </li>-->
<!--                            <li>-->
<!--                                <a onclick="xadmin.add_tab('权限列表','{:url(\'admin/auth/index\')}')">-->
<!--                                    <i class="iconfont">&#xe6a7;</i>-->
<!--                                    <cite>权限列表</cite></a>-->
<!--                            </li>-->
<!--                        </ul>-->
<!--                    </li>-->




                </ul>
            </div>
        </div>
        <!-- <div class="x-slide_left"></div> -->
        <!-- 左侧菜单结束 -->
        <!-- 右侧主体开始 -->
        <div class="page-content">
            <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
                <ul class="layui-tab-title">
                    <li class="home">
                        <i class="layui-icon">&#xe68e;</i>我的桌面</li></ul>
                <div class="layui-unselect layui-form-select layui-form-selected" id="tab_right">
                    <dl>
                        <dd data-type="this">关闭当前</dd>
                        <dd data-type="other">关闭其它</dd>
                        <dd data-type="all">关闭全部</dd></dl>
                </div>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <iframe src="{:url('admin/homepage/welcome')}" frameborder="0" scrolling="yes" class="x-iframe"></iframe>
                    </div>
                </div>
                <div id="tab_show"></div>
            </div>
        </div>
        <div class="page-content-bg"></div>
        <style id="theme_style"></style>
        <!-- 右侧主体结束 -->
        <!-- 中部结束 -->

    </body>

</html>